ArcPad Map File Schema
LAYER Element
See Also  Send comments on this topic.
ArcPad Map File Schema > ArcPad Element > MAP Element : LAYER Element

Glossary Item Box

Description

When used in a map file (*.apm), it defines the characteristics of one of the map layers.

Diagram

SYMBOLOGY Element SNAPPING Element METADATA Element HYPERLINK Element DATASET Element Sequence LAYER Element

Overview

LAYER 1..∞
When used in a map file (*.apm), it defines the characteristics of one of the map layers.
brightness optional Restriction of xs:double
Brightness adjustment for the layer. Positive values increase the whiteness of the layer, negative values increase the darkness of the layer.
contrast optional Restriction of xs:double
Contrast adjustment for the layer. Positive values exaggerate color separation (as the value approaches 1, the result is either pure black (for colors below the grey threshold) or pure solid color (for colors above the threshold), for example, a dark red will become pitch black, whereas a bright red will become solid red). Negative values merge/dissolve the colors (as the value approaches -1, the result is all gray).
edit optional Restriction of xs:string
hyperlink optional Restriction of xs:string
identify optional Restriction of xs:string
maxscale optional xs:string
minscale optional xs:string
name optional xs:string

When parent is ToolButton:

Custom tool name. Used to reference the tool in scripts.

refscale optional xs:string
Reference scale to display the TRUETYPEMARKERSYMBOL or SIMPLEMARKERSYMBOL at the specified fontsize using a relative scale such as 1:24000. TRUETYPEMARKERSYMBOLs and SIMPLEMARKERSYMBOLs are scaled relative to the refscale as the map is zoomed in or out.
transparency optional xs:double
transparencycolor optional Restriction of xs:string
Sequence
name required xs:string

When parent is ToolButton:

Custom tool name. Used to reference the tool in scripts.

HYPERLINK
Used to specify the hyperlink properties of a layer in an ArcPad layer definition or ArcPad map file (*.apm).
METADATA
The parent element for layer meta data.
edge optional Restriction of xs:string
end optional Restriction of xs:string
tolerance optional xs:double
vertex optional Restriction of xs:string
visible optional Restriction of xs:string
SYMBOLOGY
The parent element for symbology in an ArcPad map file (*.apm) or layer definition.

Attributes

NameTypeUseDefaultFixedDescription
brightnessRestriction of xs:doubleoptional0 Brightness adjustment for the layer. Positive values increase the whiteness of the layer, negative values increase the darkness of the layer.
contrastRestriction of xs:doubleoptional0 Contrast adjustment for the layer. Positive values exaggerate color separation (as the value approaches 1, the result is either pure black (for colors below the grey threshold) or pure solid color (for colors above the threshold), for example, a dark red will become pitch black, whereas a bright red will become solid red). Negative values merge/dissolve the colors (as the value approaches -1, the result is all gray).
editRestriction of xs:stringoptionalfalse  
hyperlinkRestriction of xs:stringoptionalfalse  
identifyRestriction of xs:stringoptionalfalse  
maxscalexs:stringoptional   
minscalexs:stringoptional   
namexs:stringoptional  

When parent is ToolButton:

Custom tool name. Used to reference the tool in scripts.

refscalexs:stringoptional  Reference scale to display the TRUETYPEMARKERSYMBOL or SIMPLEMARKERSYMBOL at the specified fontsize using a relative scale such as 1:24000. TRUETYPEMARKERSYMBOLs and SIMPLEMARKERSYMBOLs are scaled relative to the refscale as the map is zoomed in or out.
transparencyxs:doubleoptional   
transparencycolorRestriction of xs:stringoptionalnull  

Source

<xs:element name="LAYER" maxOccurs="unbounded" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>When used in a map file (*.apm), it defines the characteristics of one of the map layers.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DATASET">
        <xs:complexType>
          <xs:attribute use="required" ref="name">
            <xs:annotation>
              <xs:documentation>Specifies the complete pathname of a layer file (for example, c:\data\mylayer.shp) .</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element ref="HYPERLINK">
        <xs:annotation>
          <xs:documentation>Used to specify the hyperlink properties of a layer in an ArcPad layer definition or ArcPad map file (*.apm).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element ref="METADATA" />
      <xs:element name="SNAPPING">
        <xs:complexType>
          <xs:attribute default="false" name="edge">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="true" />
                <xs:enumeration value="false" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute default="false" name="end">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="true" />
                <xs:enumeration value="false" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute default="0" name="tolerance" type="xs:double" />
          <xs:attribute default="false" name="vertex">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="true" />
                <xs:enumeration value="false" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute default="false" ref="visible" />
        </xs:complexType>
      </xs:element>
      <xs:element ref="SYMBOLOGY"></xs:element>
    </xs:sequence>
    <xs:attribute ref="brightness" />
    <xs:attribute ref="contrast" />
    <xs:attribute default="false" name="edit">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="hyperlink">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="identify">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute ref="maxscale" />
    <xs:attribute ref="minscale" />
    <xs:attribute ref="name">
      <xs:annotation>
        <xs:documentation>Name of the layer. Can be an alias.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="refscale">
      <xs:annotation>
        <xs:documentation>Reference scale to display the symbology for the layer. The scale is specfied using a relative scale such as 1:24000. Symbols are scaled relative to the refscale as the map is zoomed in or out.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="transparency">
      <xs:annotation>
        <xs:documentation>Transparency percentage for the layer (0 = 100 % transparent; 1 = 100 % opaque).</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="transparencycolor">
      <xs:annotation>
        <xs:documentation>Transparency color for the layer. This color will be rendered transparent in the map.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.